<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Array对象 </title>
    <script type="text/javascript">
        var myarr1 = new Array("010")
        var myarr2 = new Array("-", "84697581");

        document.write(myarr1.concat(myarr2[0], myarr2[1]));
        //document.write(myarr1.concat(myarr2));
        //可以正确运行，由于不规范，不推荐次用法--由于myarr是数组，默认链接掉了
        //指定分隔符链接join()
        var arr1 = new Array("86", "010")
        var arr2 = new Array("84697581");
        var arr3 = arr1.concat(arr2);
        document.write(arr3.join(".") + "<br>");
        document.write(arr3.join("-") + "<br>");
        document.write(arr3.join("") + "<br>");
        //使用reverse()方法,将数组myarr1顺序颠倒，并输出。
        var myarr11 = ["我", "爱", "你"];
        document.write(myarr11 + "<br>");
        document.write(myarr11.reverse() + "<br>");
        //将选定数组元素"爱","你"，并输出。
        document.write(myarr11.slice(1) + "<br>");
        document.write(myarr11.slice(-2) + "<br>");
    </script>
    </script>
    <
    /head>
    < body >
    < /body>
    < /html>